import pytest

#自定义在哪执行
@pytest.fixture()
def longin():
    print('用户登录')


#使用fixture代替setup和teardown
@pytest.fixture()
def file_oper():
    print('打开文件')
    yield
    print('关闭文件')


# @pytest.fixture(name='ob')
# def oper_browser():
#     driver =Webdiver.Chrome()
#     driver.maximize_

